home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / C / Mesa / widgets-mesa / include / GL / MesaWorkstation.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-31  |  4.1 KB  |  102 lines

  1. /* MesaWorkstation.h -- Public header file for the Mesa Workstation widget
  2.    Copyright (C) 1995 Thorsten.Ohl @ Physik.TH-Darmstadt.de
  3.  
  4.    This library is free software; you can redistribute it and/or
  5.    modify it under the terms of the GNU Library General Public
  6.    License as published by the Free Software Foundation; either
  7.    version 2 of the License, or (at your option) any later version.
  8.  
  9.    This library is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.    GNU Library General Public License for more details.
  13.  
  14.    You should have received a copy of the GNU Library General Public
  15.    License along with this library; if not, write to the Free Software
  16.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18.    $Id: MesaWorkstation.h,v 1.8 1996/01/15 00:44:07 ohl Exp $
  19.  */
  20.  
  21. #ifndef _MesaWorkstation_h
  22. #define _MesaWorkstation_h
  23.  
  24. #include <GL/gl.h>
  25. #include <GL/GLwDrawA.h>
  26. #include <GL/MesaDrawingArea.h>
  27.  
  28. #ifdef __GLX_MOTIF
  29. typedef struct _MesaMWorkstationClassRec *MesaMWorkstationWidgetClass;
  30. typedef struct _MesaMWorkstationRec *MesaMWorkstationWidget;
  31. extern WidgetClass mesaMWorkstationWidgetClass;
  32. void GLwMBeginProjection (Widget w);
  33. void GLwMEndProjection (void);
  34. void GLwMPostProjectionList (Widget, GLuint);
  35. void GLwMPostProjectionMatrix (Widget, GLdouble *m);
  36. void GLwMPostCurrentProjection (Widget);
  37. void GLwMUnpostProjection (Widget);
  38. GLuint GLwMGetProjectionList (Widget w);
  39. int GLwMGetProjectionMatrix (Widget w, GLdouble *m);
  40. void GLwMSetFrustumProjection (Widget w, GLdouble left, GLdouble right,
  41.                    GLdouble bottom, GLdouble top,
  42.                    GLdouble near, GLdouble far);
  43. void GLwMSetOrthoProjection (Widget w, GLdouble left, GLdouble right,
  44.                  GLdouble bottom, GLdouble top,
  45.                  GLdouble near, GLdouble far);
  46. void GLwMBeginView (Widget w);
  47. void GLwMEndView (void);
  48. void GLwMPostViewList (Widget, GLuint);
  49. void GLwMPostViewMatrix (Widget, GLdouble *m);
  50. void GLwMPostCurrentView (Widget);
  51. void GLwMUnpostView (Widget);
  52. GLuint GLwMGetViewList (Widget w);
  53. int GLwMGetViewMatrix (Widget w, GLdouble *m);
  54. void GLwMSetPolarView (Widget w, GLdouble r, GLdouble theta, GLdouble phi);
  55. void GLwMPostObject (Widget, GLuint);
  56. void GLwMUnpostObject (Widget, GLuint);
  57. void GLwMUnpostAllObjects (Widget);
  58. void GLwMRedrawObjects (Widget);
  59. void GLwMPostProjection (Widget, GLuint); /* obsolete */
  60. GLuint GLwMGetProjection (Widget w); /* obsolete */
  61. void GLwMPostView (Widget, GLuint); /* obsolete */
  62. GLuint GLwMGetView (Widget w); /* obsolete */
  63. #else /* not __GLX_MOTIF */
  64. typedef struct _MesaWorkstationClassRec *MesaWorkstationWidgetClass;
  65. typedef struct _MesaWorkstationRec *MesaWorkstationWidget;
  66. extern WidgetClass mesaWorkstationWidgetClass;
  67. void GLwBeginProjection (Widget w);
  68. void GLwEndProjection (void);
  69. void GLwPostProjectionList (Widget, GLuint);
  70. void GLwPostProjectionMatrix (Widget, GLdouble *m);
  71. void GLwPostCurrentProjection (Widget);
  72. void GLwUnpostProjection (Widget);
  73. GLuint GLwGetProjectionList (Widget w);
  74. int GLwGetProjectionMatrix (Widget w, GLdouble *m);
  75. void GLwSetFrustumProjection (Widget w, GLdouble left, GLdouble right,
  76.                   GLdouble bottom, GLdouble top,
  77.                   GLdouble near, GLdouble far);
  78. void GLwSetOrthoProjection (Widget w, GLdouble left, GLdouble right,
  79.                 GLdouble bottom, GLdouble top,
  80.                 GLdouble near, GLdouble far);
  81. void GLwBeginView (Widget w);
  82. void GLwEndView (void);
  83. void GLwPostViewList (Widget, GLuint);
  84. void GLwPostViewMatrix (Widget, GLdouble *m);
  85. void GLwPostCurrentView (Widget);
  86. void GLwUnpostView (Widget);
  87. GLuint GLwGetViewList (Widget w);
  88. int GLwGetViewMatrix (Widget w, GLdouble *m);
  89. void GLwSetPolarView (Widget w, GLdouble r, GLdouble theta, GLdouble phi);
  90.  
  91. void GLwPostObject (Widget, GLuint);
  92. void GLwUnpostObject (Widget, GLuint);
  93. void GLwUnpostAllObjects (Widget);
  94. void GLwRedrawObjects (Widget);
  95. void GLwPostProjection (Widget, GLuint); /* obsolete */
  96. GLuint GLwGetProjection (Widget w); /* obsolete */
  97. void GLwPostView (Widget, GLuint); /* obsolete */
  98. GLuint GLwGetView (Widget w); /* obsolete */
  99. #endif /* not __GLX_MOTIF */
  100.  
  101. #endif /* _MesaWorkstation_h */
  102.